<template>
  <view class="u-demo-block">
    <view class="u-demo-block">
      <u-swiper :list="list3" previousMargin="30" nextMargin="30" circular :autoplay="false" radius="5" bgColor="#ffffff"></u-swiper>
    </view>

    <u-button type="primary" :plain="true" text="镂空" @click="btn"></u-button>

    <view class="boex">
      <img :src="img" alt="" srcset="">
    </view>
  </view>
</template>

<script>
import { getCosimg } from '../../api/user'
export default {
  data() {
    return {
      title: 'Hello',
      list3: [
        'https://cdn.uviewui.com/uview/swiper/swiper3.png',
        'https://cdn.uviewui.com/uview/swiper/swiper2.png',
        'https://cdn.uviewui.com/uview/swiper/swiper1.png',
      ],
    }
  },
  async onLoad() {
	let key = 'f02b59e92f7302680ddfb4f68a365fac'
    await getCosimg({apiKey:key}).then(res => {
      console.log(res, '成功');
    })
  },
  methods: {
    async btn() {
      console.log(1111);
    }
  }
}
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
</style>
